package main

import "fmt"

type Student struct {
	Name string
	Age int
    left *Student
    right *Student
}

// 遍历二叉树，深度优先
func trans(root *Student) {
	if root == nil {
		return
	}
	// 前序遍历
	fmt.Println(root)
	trans(root.left)
	trans(root.right)
}

type Stu struct {
	Num int
}

func main() {
	var s1 Student = Student{"stu1", 18, nil, nil}
	fmt.Println(s1)
}

